import request from '@/utils/request';

// Banner
export const getHomeBanner = async () => {
  return await request({
    url: '/banner',
    method: 'get',
  });
};

// 推荐歌单
export const personalized = async (limit: number = 10) => {
  return await request({
    url: '/personalized?limit=' + limit,
    method: 'get',
  });
};

// 推荐新音乐
export const newSong = async (limit: number = 10) => {
  return await request({
    url: '/personalized/newsong?limit=' + limit,
    method: 'get',
  });
};
